<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			function week(weekday){   //函数
			
			switch(weekday){
				case "星期一":
				alert("新的一周开始了");
				break;
				case "星期二":
				case "星期三":
				case "星期四":
				alert("努力工作");
				break;
				case "星期五":
				alert("明天是周末");
				break
				default:
				alert("放松休息");
				break;
			}
			}
		</script>
	</head>
	<body>
		<input type="button" name="weekdays" id="weekdays" value="点击输入" onclick="week(prompt('请输入今天是星期几：','星期一'))" />
	</body>
</html>
